/**
 * ParamValueDictServiceImpl.java
 * com.sitech.dmcs.core.param.impl
 * Function： TODO 
 *
 *   ver  author   date    
 * ──────────────────────────────────
 *   	 geutopia  Jan 26, 2011        
 *
 * Copyright (c) 2011, TNT All Rights Reserved.
*/

package com.sitech.timing.param.impl;

import java.util.List;

import com.sitech.timing.dao.ParamValueDictDao;
import com.sitech.timing.domain.ParamValueDict;
import com.sitech.timing.domain.ParamValueDictDetail;
import com.sitech.timing.param.ParamValueDictService;



/**
 * ClassName:ParamValueDictServiceImpl
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   geutopia
 * @version  
 * @since    Ver 1.1
 * @Date	 2011	Jan 26, 2011		4:49:07 PM
 *
 * @see 	 
 */

public class ParamValueDictServiceImpl implements ParamValueDictService
{

	private ParamValueDictDao paramValueDictDao;
	/**
	 * (non-Javadoc)
	 * @see com.sitech.dmcs.core.param.ParamValueDictService#deleteParamValueDict(java.lang.String)
	 */
	public void deleteParamValueDict(String paramValueDictId)
	{
		paramValueDictDao.deleteParamValueDict(paramValueDictId);		
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.dmcs.core.param.ParamValueDictService#deleteParamValueDictDetail(java.lang.String)
	 */
	public void deleteParamValueDictDetail(String paramValueDictId)
	{
		paramValueDictDao.deleteParamValueDictDetail(paramValueDictId);		
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.dmcs.core.param.ParamValueDictService#getParamValueDict(java.lang.String)
	 */
	public ParamValueDict getParamValueDict(String paramValueDictId)
	{
		ParamValueDict paramValueDict = paramValueDictDao.getParamValueDict(paramValueDictId);
		
		if(paramValueDict != null)
		{
			List<ParamValueDictDetail> paramValueDictDetaiListList = paramValueDictDao.getParamValueDictDetail(paramValueDictId);
			paramValueDict.setParamValueDictDetaiList(paramValueDictDetaiListList);
		}
		return paramValueDict;
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.dmcs.core.param.ParamValueDictService#insertParamValueDict(com.sitech.dmcs.core.domain.ParamValueDict)
	 */
	public void insertParamValueDict(ParamValueDict paramValueDict)
	{
		paramValueDictDao.insertParamValueDict(paramValueDict);
	}

	/**
	 * (non-Javadoc)
	 * @see com.sitech.dmcs.core.param.ParamValueDictService#insertParamValueDictDetail(com.sitech.dmcs.core.domain.ParamValueDictDetail)
	 */
	public void insertParamValueDictDetail(ParamValueDictDetail paramValueDictDetail)
	{
		paramValueDictDao.insertParamValueDictDetail(paramValueDictDetail);		
	}

	public ParamValueDictDao getParamValueDictDao()
	{
		return paramValueDictDao;
	}

	public void setParamValueDictDao(ParamValueDictDao paramValueDictDao)
	{
		this.paramValueDictDao = paramValueDictDao;
	}

}
